/*************************************************************************
	> File Name: EP02.c
	> Author: 
	> Mail: 
	> Created Time: 
 ************************************************************************/
#include <stdio.h>
#define MAX_N 4000000

int fib[MAX_N] = {0};
int main() {
    fib[1] = 1, fib[2] = 1;
    int n = 3;
    while (fib[n - 1] + fib[n - 2] <= MAX_N) {
        fib[n] = fib[n - 1] + fib[n - 2];
        n++;
    }
    long long sum = 0;
    for (int i = 1; i < n; i++) {
        if (fib[i] & 1) continue;
        sum += fib[i];
    }
    printf("%lld, n = %d\n", sum, n);
    return 0;
}
